<?php
require_once '../../common.inc.php';
$all = $db->getAll("select * from xd_module order by moduleid asc");
$mdTd = "<table>";
$mdTd .= "<caption>xd_module</caption>";
$mdTd .= "<tr><th>模块ID</th><th>模块标识</th><th>模块名称</th><th>模块目录</th><th>域名</th><th>链接地址</th></tr>";
foreach ($all as $k => $v) {
	$mdTd .= "<tr>";
	$mdTd .= "<td class=\"c1\">{$v['moduleid']}</td>";
	$mdTd .= "<td class=\"c2\">{$v['module']}</td>";
	$mdTd .= "<td class=\"c2\">{$v['name']}</td>";
	$mdTd .= "<td class=\"c3\">{$v['moduledir']}</td>";
	$mdTd .= "<td class=\"c4\">{$v['domain']}</td>";
	$mdTd .= "<td class=\"c5\">{$v['linkurl']}</td>";
	$mdTd .= "</tr>";
}
$mdTd .= "</table>";
?>
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title>Ixdcw 模块数据</title>
	<style>
		table{ border-collapse:collapse;border:1px solid #CCC;background:#efefef;width:100%; margin-bottom:1em;}
		table th{ text-align:left; font-weight:bold; padding:.5em 2em .5em .75em; line-height:1.6em; font-size:12px; border:1px solid #CCC;}
		table td{ padding:.5em .75em; line-height:1.6em; font-size:12px; border:1px solid #CCC;background-color:#fff;}
		.c1{ width: 150px;}
		.c2{ width: 120px;}
		.c3{ width: 130px;}
		.c4{ width: 130px;}
		caption{ font-size:14px; font-weight:bold; line-height:2em; text-align:left; }
	</style>
</head>
<body>
<?php echo $mdTd; ?>
</body>
</html>